/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.dto;

import java.io.Serializable;

/**
 *@ClassName: PackStandardData
 *@Description: TODO()
 *@author youjun
 *@date 2017年6月22日 下午8:50:56
 */
//@JsonInclude(Include.NON_NULL)
public class PackStandardData implements Serializable, Comparable<PackStandardData> {

	/**
	 *@Fields serialVersionUID : TODO()
	 */
	private static final long serialVersionUID = 7963987243811214431L;

	/**包装级别,eg:1*/
	private Short level;
	
	/**包装名称,eg:瓶*/
	private String name;
	
	/**下级数量*/
	private Integer subNum;
	
	/**
	 *@return the level
	 */
	public Short getLevel() {
		return level;
	}

	/**
	 *@param level the level to set
	 */
	public void setLevel(Short level) {
		this.level = level;
	}

	/**
	 *@return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 *@param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 *@return the subNum
	 */
	public Integer getSubNum() {
		return subNum;
	}

	/**
	 *@param subNum the subNum to set
	 */
	public void setSubNum(Integer subNum) {
		this.subNum = subNum;
	}

	/**(non-Javadoc)
	 *@Title: compareTo
	 *@Description: 
	 *@see java.lang.Comparable#compareTo(java.lang.Object)
	 *@author youjun
	 *@date 2017年8月11日 下午9:41:40
	 */
	@Override
	public int compareTo(final PackStandardData pack) {

		return level > pack.getLevel() ? 1 : (level == pack.getLevel() ? 0 : -1);
	}

}
